package com;

import com.service.UserServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class AppMain implements CommandLineRunner {
    public static void main(String[] args) {
        SpringApplication.run(AppMain.class,args);
    }

    @Autowired
    public UserServiceImpl userService;
    @Override
    public void run(String... args) throws Exception {
        userService.doSth();
    }
}
